<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="
				 java.util.*,
				 com.kylin.module.shop.orm.*,
                 com.kylin.common.util.*,
				 com.kylin.common.dict.orm.Dict,
                 com.kylin.common.paginate.DisplayPage,
			     com.kylin.module.user.orm.*" %>
<%@ include file="/common/include/pageExpires.jsp"%>
<%@ include file="/common/include/taglibs.jsp"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title><bean:message key="company.63" /></title>
<%@ include file="/common/include/css.jsp"%>
	</head>

	<body>
		<br>
		<table width="480" border="0" align="center" cellpadding="0"
			cellspacing="0">
			<tr>
				<td align="center">
					<span class="tl02left"><img src="/images/logo.gif" width="309"
							height="80" />
					</span>
				</td>
			</tr>
			<tr>
				<td align="left">
					<b><bean:message key="company.64" />：</b>
					<br>
					   <bean:message key="company.65" />
				</td>
			</tr>
		</table>
		<br><mytag:MyActionMsg />
		
<form action="/module/shop/_nodeco/shop.do" method="post" onsubmit="return checkForm(this);">
	<input type="hidden" name="CMD" value="buyProduct">
	<input type="hidden" name="productId" value="<%=request.getParameter("pid")%>">
	<input type="hidden" name="price"    value="<%=request.getParameter("pprice")%>">

		<table width="560" border="0" align="center" cellpadding="0"
			cellspacing="0">
			<tr align="left">
				<td width="80"><bean:message key="product.05" />： </td>
				<td><%=request.getParameter("pname") %></td>
			</tr>
			<tr>
				<td><bean:message key="product.04" />：</td>
				<td> <%=request.getParameter("pprice") %> 
				<%=UTool.getDictOptionName(request.getParameter("pcurrency"))%>
				</td>
			</tr>
			<tr>
				<td> <bean:message key="company.66" />：</td>
				<td>
					<select name="quantity" check="^\S+$" warning="订购数量小于零">
						<option selected> --<bean:message key="company.67"/>-- </option>
						<%
						    try{
							    int num = Integer.parseInt(request.getParameter("pquantity"));
							    for(int i=1;i<=num;i++){
							    out.println("<option value='"+i+"' > "+i+" </option>");
							    }
						    }catch(Exception e){}
						%>
					</select> <%=UTool.getDictOptionName( request.getParameter("punit") )%>
				</td>
			</tr>
			<tr>
				<td>
					<bean:message key="company.68" />：
				</td>
				<td>
					<input name="contact" type="text" size="20" check="^\S+$" warning="联系人不能为空">
				</td>
			</tr>
			<tr>
				<td><bean:message key="base.13" />： </td>
				<td align="left">
      <mytag:national name="country" notEmpty="true" 
                  value="<%= sessionLocale.toString() %>" dictName="<%=Constants.ALLCOUNTRY%>"/>
				</td>
			</tr>
			<tr>
				<td><bean:message key="base.05" />： </td>
				<td>
					<input name="phone_country" type="text" size="10" check="^\d+$" warning="请输入正确的电话信息">
					-
					<input name="phone_area" type="text" size="10" check="^\d+$" warning="请输入正确的电话信息">
					-
					<input name="phone" type="text" size="10" check="^\d+$" warinng="请输入正确的电话信息">
				</td>
			</tr>
			<tr>
				<td><bean:message key="base.06" />：</td>
				<td>
					<input name="fax_country" type="text" size="10">
					-
					<input name="fax_area" type="text" size="10">
					-
					<input name="fax" type="text" size="10">
				</td>
			</tr>
			<tr>
				<td><bean:message key="base.07" />： </td>
				<td>
					<input name="email" type="text" size="40" check="^\w+@\w+(\.\w+)+(\,\w+@\w+(\.\w+)+)*$" warning="请输入正确的Email地址">
				</td>
			</tr>
			<tr>
				<td><bean:message key="base.65" />： </td>
				<td>
					<textarea name="memo" cols="50" rows="5"></textarea>
				</td>
			</tr>
			<tr align="center">
				<td height="40" colspan="2">
					<input type="submit" value="<bean:message key="company.69" />">
				</td>
			</tr>
		</table>
	<input type="hidden" name="pid"       value="<%=request.getParameter("pid")%>">
	<input type="hidden" name="pname"     value="<%=request.getParameter("pname")%>">
	<input type="hidden" name="pprice"    value="<%=request.getParameter("pprice")%>">
	<input type="hidden" name="pquantity" value="<%=request.getParameter("pquantity")%>">
	<input type="hidden" name="pcurrency" value="<%=request.getParameter("pcurrency")%>">
	<input type="hidden" name="punit"     value="<%=request.getParameter("punit")%>">
</form>
</body>
</html>

